<?php
require_once('functions/connectDB.php');
if($_POST[studentID]!=null){
	$query = "UPDATE students SET idgroups=null WHERE studentID=('$_POST[studentID]')";
}
else {echo '<p>The name provided is null! Please check again!</p>';}
$results = mysql_query($query) or die(mysql_error());
if($results)
	{
		echo '<p>You are free now!</p>';
	}
mysql_close($db);

?>